<div class="weborders view">
<h2><?php  __('Weborder');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $weborder['Weborder']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Weborderid'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $weborder['Weborder']['weborderid']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Run'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($weborder['Run']['id'], array('controller' => 'runs', 'action' => 'view', $weborder['Run']['id'])); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Weborder', true), array('action' => 'edit', $weborder['Weborder']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Weborder', true), array('action' => 'delete', $weborder['Weborder']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $weborder['Weborder']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Weborders', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Weborder', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Runs', true), array('controller' => 'runs', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Run', true), array('controller' => 'runs', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Exceptionscases', true), array('controller' => 'exceptionscases', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Exceptionscase', true), array('controller' => 'exceptionscases', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Partrequests', true), array('controller' => 'partrequests', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Partrequest', true), array('controller' => 'partrequests', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related Exceptionscases');?></h3>
	<?php if (!empty($weborder['Exceptionscase'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Caseid'); ?></th>
		<th><?php __('Status Id'); ?></th>
		<th><?php __('Weborder Id'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($weborder['Exceptionscase'] as $exceptionscase):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $exceptionscase['id'];?></td>
			<td><?php echo $exceptionscase['caseid'];?></td>
			<td><?php echo $exceptionscase['status_id'];?></td>
			<td><?php echo $exceptionscase['weborder_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'exceptionscases', 'action' => 'view', $exceptionscase['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'exceptionscases', 'action' => 'edit', $exceptionscase['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'exceptionscases', 'action' => 'delete', $exceptionscase['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $exceptionscase['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Exceptionscase', true), array('controller' => 'exceptionscases', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Partrequests');?></h3>
	<?php if (!empty($weborder['Partrequest'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Headernumber'); ?></th>
		<th><?php __('Detailnumber'); ?></th>
		<th><?php __('Xto'); ?></th>
		<th><?php __('Xfrom'); ?></th>
		<th><?php __('Xtodate'); ?></th>
		<th><?php __('Trackingnumber'); ?></th>
		<th><?php __('Notes'); ?></th>
		<th><?php __('Weborder Id'); ?></th>
		<th><?php __('Mac Id'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($weborder['Partrequest'] as $partrequest):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $partrequest['id'];?></td>
			<td><?php echo $partrequest['headernumber'];?></td>
			<td><?php echo $partrequest['detailnumber'];?></td>
			<td><?php echo $partrequest['xto'];?></td>
			<td><?php echo $partrequest['xfrom'];?></td>
			<td><?php echo $partrequest['xtodate'];?></td>
			<td><?php echo $partrequest['trackingnumber'];?></td>
			<td><?php echo $partrequest['notes'];?></td>
			<td><?php echo $partrequest['weborder_id'];?></td>
			<td><?php echo $partrequest['mac_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'partrequests', 'action' => 'view', $partrequest['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'partrequests', 'action' => 'edit', $partrequest['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'partrequests', 'action' => 'delete', $partrequest['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $partrequest['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Partrequest', true), array('controller' => 'partrequests', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
